print('-'*20,"欢迎光临《唐僧大战白骨精》",'-'*20)
print("请选择你的身份：")
print("\t1.唐僧")
print("\t2.白骨精")
option = int(input("请选择[1-2]"))
print('-'*68)
if option == 1:
    print("您已经选择了1，你将以->唐僧<-的身份来进行游戏!")
elif option == 2:
    print("您竟然选择了2，太不要脸了，你将以->唐僧<-的身份来进行游戏!")
else:
    print("你的输入有误，系统将自动分配身份，你将以->唐僧<-的身份来进行游戏!")

# 进入游戏，显示玩家的生命值和攻击力
player_life = 2
player_attack = 2

boss_life = 10
boss_attack = 10
print('-'*68)
print(f'唐僧你的生命值是{player_life},你的攻击力是{player_attack}')

#显示游戏选项：
while True:
    print("请选择你要进行的操作：")
    print("\t1.练级")
    print("\t2.打BOSS")
    print("\t3.逃跑")
    player_choose = input("请选择要做的操作[1-3]:")
    if player_choose == "1":
        player_life += 2
        player_attack += 2
        print('-' * 68)
        print(f'恭喜你升级了！，你现在的生命值是{player_life}，你的攻击力是{player_attack}')
    elif player_choose == "2":
        boss_life -= player_attack;
        print('-' * 68)
        print("->唐僧<- 攻击了 ->白骨精<-")
        if boss_life <= 0:
            print(f"->白骨精<-受到了{player_attack}点伤害，重伤不治死了，->唐僧<-赢得了胜利")
            break
        else:
            player_life -= boss_attack
            print(f"->唐僧<-受到了{boss_attack}点伤害，重伤不治死亡！GAME OVER")
            break
    elif player_choose == "3":
        print("->唐僧<-一扭头，撒腿就跑！GAME OVER")
        break
    else:
        print("输出错误")